package com.market.service;

import com.market.common.request.PurchaseRequestParams;
import com.market.common.vo.PurchaseVo;
import com.market.entity.Commodity;
import com.market.entity.Purchase;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseService {
    /**
     * 新增采购单
     *
     * @param purchase
     * @return
     */
    int addPurchase(Purchase purchase);

    /**
     * 审核采购单
     *
     * @return
     */
    List<PurchaseVo> findPurchase();

    /**
     * 删除采购单
     *
     * @param purchaseId
     * @return
     */
    int delPurchase(Long purchaseId);

    /**
     * 更改采购单
     *
     * @param purchase
     * @return
     */
    int updatePurchase(Purchase purchase);

    /**
     * 审核通过的采购单
     *
     * @return
     */
    List<PurchaseVo> findPurchasePass();

    /**
     * 高级搜索
     *
     * @param purchase
     * @return
     */
    List<PurchaseVo> selectPurchases(Purchase purchase);

    /**
     * 查询审核状态
     *
     * @param id
     * @return
     */
    Purchase findAuditStatus(Long id);

    /**
     * 查询入库状态
     *
     * @param id
     * @return
     */
    Purchase findInStatus(Long id);
    /**
     * 查询所有采购单
     *
     * @param purchase
     * @return
     */
    /*    List<PurchaseVo> flindPurchases(Purchase purchase,Integer page,Integer size);*/
}
